

var Opening = function (game) {
  this.create = function () {
    var bg = game.add.sprite(0, 0, imgs['opening']);
    //元素位置的计算原点
    var CMT = game.add.button(240, 225, imgs['button'], actionOnClick, this,2, 1, 0);
     CMT.width=380;
     CMT.height=120;

    function actionOnClick (arg) {
      game.goState('next');
    }
  };



}